using System;
using System.Runtime.Serialization;

namespace AsNum.MySecret.Entity.Database {    
	/// <summary>
	/// Table : dbo.MessageReceiver
	/// 消息接收者
	/// </summary>
	[Serializable]
	[DataContract]
    public class MessageReceiverEntity {

			

		
		/// <summary>
		/// 自动编号
		/// dbo.MessageReceiver.ID
		/// </summary>
		[DataMember]
		public int ID{
			get;set;
		}
					

		
		/// <summary>
		/// 消息编号
		/// dbo.MessageReceiver.MessageID
		/// </summary>
		[DataMember]
		public int MessageID{
			get;set;
		}
					

		
		private string sendType = "EML";
		/// <summary>
		/// 消息发送方式: EML(QQ, MSN 留扩展)
		/// dbo.MessageReceiver.SendType
		/// 默认值('EML')
        /// </summary>
		[DataMember]
		public string SendType{
			get{
				return sendType;
			}
			set{
				sendType = value;
			}
		}
					

		
		/// <summary>
		/// 消息接收者，跟据 SendType
		/// dbo.MessageReceiver.Receiver
		/// </summary>
		[DataMember]
		public string Receiver{
			get;set;
		}
					

		
		/// <summary>
		/// 消息接收者称谓
		/// dbo.MessageReceiver.ReceiverName
		/// </summary>
		[DataMember]
		public string ReceiverName{
			get;set;
		}
					

		
		private DateTime createTime = new DateTime();
		/// <summary>
		/// 
		/// dbo.MessageReceiver.CreateTime
		/// 默认值(getdate())
        /// </summary>
		[DataMember]
		public DateTime CreateTime{
			get{
				return createTime;
			}
			set{
				createTime = value;
			}
		}
					

		
		/// <summary>
		/// 最后一次发送时间
		/// dbo.MessageReceiver.LastSendTime
		/// </summary>
		[DataMember]
		public DateTime LastSendTime{
			get;set;
		}
					

		
		/// <summary>
		/// 最后一次发送失败时间
		/// dbo.MessageReceiver.LastSendFailedTime
		/// </summary>
		[DataMember]
		public DateTime LastSendFailedTime{
			get;set;
		}
					

		
		private int sendFailedCount = 0;
		/// <summary>
		/// 发送失败次数
		/// dbo.MessageReceiver.SendFailedCount
		/// 默认值((0))
        /// </summary>
		[DataMember]
		public int SendFailedCount{
			get{
				return sendFailedCount;
			}
			set{
				sendFailedCount = value;
			}
		}
			
	}
}
